package com.wsj.dao;

import java.util.List;

import org.springframework.dao.DataAccessException;

import com.wsj.util.page.PageResultSet;
import com.wsj.web.form.researchReport.HomeSiteResearchReportFileUploadForm;
import com.wsj.web.vo.homeSite.HomeSiteUploadFile;

/*****
 * 
 * @author fengbin  createTime:2009-7-25
 *
 */
public interface IHomeSiteResearchReportFileUploadDao {

	/******
	 * 添加研究报告对象
	 * @param homeSiteUploadFile
	 * @throws DataAccessException
	 */
	void addHomeSiteUploadFile(HomeSiteUploadFile homeSiteUploadFile) throws DataAccessException;

	/********
	 * 通过研究报告id,获取研究报告对象
	 * @param id
	 * @return
	 * @throws DataAccessException
	 */
	HomeSiteUploadFile getHomeSiteUploadFileById(Integer id) throws DataAccessException;

	/*********
	 * 更新研究报告对象
	 * @param dbHomeSiteUploadFile
	 * @throws DataAccessException
	 */
	void updateHomeSiteUploadFile(HomeSiteUploadFile dbHomeSiteUploadFile)throws DataAccessException;

	/********
	 * 搜索研究报告
	 * @param homeSiteResearchReportFileUploadForm
	 * @param page
	 * @param pageSieze
	 * @return
	 * @throws DataAccessException
	 */
	PageResultSet searchResearchReportList(HomeSiteResearchReportFileUploadForm homeSiteResearchReportFileUploadForm, int page, int pageSize)throws DataAccessException;

	/************
	 * 获取所有的研究报告
	 * 前台使用,按时间排序
	 */
	PageResultSet getAllResearchReportList(int page, int pageSize)throws DataAccessException;

	/*******
	 * 获取前几个研究报告
	 * @param top
	 * @return
	 * @throws DataAccessException
	 */
	List<HomeSiteUploadFile> getResearchReportTop(int top)throws DataAccessException;



}
